package cc.wanforme.st.server.base.mapper;

import cc.wanforme.st.server.base.entity.Permission;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author wanne
 * @since 2022-03-02
 */
public interface PermissionMapper extends BaseMapper<Permission> {

	/** 模糊查询，参数可以为空，或关系
	 * @param permission
	 * @param description
	 * @return
	 */
	List<Permission> listPermissions(@Param("permission") String permission, @Param("description") String description);

	Permission getByPermissionCode(String code);
	
}
